群晖升级硬盘 磁盘克隆后的简单扩容教程

您所在的位置:网站首页 群晖 新加硬盘 群晖升级硬盘 磁盘克隆后的简单扩容教程

群晖升级硬盘 磁盘克隆后的简单扩容教程

2023-03-25 12:05| 来源: 网络整理| 查看: 265

测试举例:原硬盘16GB已初始化存储空间,有数据资料。新盘250GB,旧盘已整盘克隆到新盘,新盘空余200多GB空间未利用。

测试工具:SSH连接工具putty足矣。。。

2999948981.png

特别注意:

1、注意备份数据,新硬盘测试好前原硬盘不要折腾。

2、关于磁盘克隆:

MBR分区(2T以内的硬盘) 到 GPT分区(2T以上硬盘) 克隆未测试!未测试!

(2022.7.2群友测试MBR盘克隆到≥2T盘后,使用DiskGenius转换分区类型为GPT即可)

MBT分区到MBR分区的没问题,如原盘GPT的话克隆到新盘也是GPT了,正常搞

1、查看新硬盘情况fdisk -l

Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0x266ad1b2

Device Boot Start End Sectors Size Id Type

/dev/sda1 2048 4982527 4980480 2.4G 83 Linux

/dev/sda2 4982528 9176831 4194304 2G 82 Linux swap /

Solaris

/dev/sda3 9437184 31072415 21635232 10.3G 83 Linux 原分区只有10.3G2、扩容sda3分区,不影响现有数据

要点:fdisk命令也可以,适合2T以内的硬盘,注意记录sda3的Start Sectors;parted适合任何容量的。

parted /dev/sda resizepart 3

root@DS120j:~# parted /dev/sda resizepart 3

Warning: Partition /dev/sda3 is being used. Are you sure you want to continue?

parted: invalid token: 100%

Yes/No? y(输入 y 输入 y 输入 y) End? [15.9GB]? 100%(输入 100% 输入 100% 输入 100%)

Information: You may need to update /etc/fstab.

3、调整文件系统大小resize2fs -f /dev/sda3

root@DS120j:~# resize2fs -f /dev/sda3

resize2fs 1.42.6 (21-Sep-2012)

Filesystem at /dev/sda3 is mounted on /volume1; on-line resizing required

old_desc_blocks = 2, new_desc_blocks = 26

The filesystem on /dev/sda3 is now 54484414 blocks long.

4、再次查看磁盘空间fdisk -l

Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0x266ad1b2

Device Boot Start End Sectors Size Id Type

/dev/sda1 2048 4982527 4980480 2.4G 83 Linux

/dev/sda2 4982528 9176831 4194304 2G 82 Linux swap /

Solaris

/dev/sda3 9437184 488397167 478959984 228.4G 83 Linux 分区现在228.4G5、存储空间管理员瞅瞅去,完活。。。

PS:对于多盘黑群晖有存储池,第3步的resize2fs可以换个方式实现,如下图设置即可。

(第2步操作完毕后,重启系统才能出现“扩充”选项)

图片by:隔壁网 124718842

3270858638.png

万水千山总是情,给个打赏行不行。 打赏 原创文章,作者:我不是矿神,本文章内容未经书面许可禁止一切形式的转载:https://code.imnks.com/389.html


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3